class Stock < ActiveRecord::Base

# not really sure if this needs to be validated or not. Stock information populated...


     validates :name, :prescence => true
     validates :price :prescence => true
     validates :type :prescence => true
     validates :volume :prescence => true
     validates :time :prescence => true


     validates_numericality_of :price, :allow_nil => false,
     :greater_then => 0, :message => "The price of a stock is greater than zero."

     validates_numericality_of :volume, :allow_nil => false,
     :greather_then_or_equal_to => 0, :message => "The volume of a stock will be greater than or equal to zero."

end
